package com.test.stock.controller;

import com.test.stock.entity.User;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author IT贱男
 * @version v1.0.0
 * @date 2022/11/7 17:38
 */
@RestController
@AllArgsConstructor
@RequestMapping("/user")
public class UserController {

    private final User user;

    @GetMapping("/getUserName")
    public String getUserName() {
        return user.getUserName();
    }
}
